function generateFiles(gameInputId, langInputId, fileNameInputId, containerId){
	$.getJSON(JsonUrls.GENERATE_FILE,
			{
			 "gameId" : $('#'+gameInputId).val(),
			 "langId" : $('#'+langInputId).val(),
			 "fileNameId" : $('#'+fileNameInputId).val()
			},
			function (data){
				printLink(data, containerId);
			});
}

function printLink(fileNames, containerId){
	$('#'+containerId+' > div').remove();
	var i;
	for(i=0;i<fileNames.length;i++){
		$('#'+containerId).append('<div class="download-row"><span class="download-cell">'+fileNames[i]+'</span><span class="download-cell"><input type="button" value="Download" onClick="window.location.href=\''+Urls.DOWNLOAD_PREFIX+fileNames[i]+'\'"/><span></div>');
	}
}